package com.woniu.service.impl;

import com.woniu.adapter.InventoryInoutAdapter;
import com.woniu.outlet.po.InventoryInoutPo;
import com.woniu.service.InventoryInoutPoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("inventoryInoutPoService")
public class InventoryInoutPoServiceImpl implements InventoryInoutPoService {
    @Autowired
    private InventoryInoutAdapter inventoryInoutAdapter;

    @Override
    public List<InventoryInoutPo> findInventoryInByPurchase() {
        List<InventoryInoutPo> inventoryInByPurchase = inventoryInoutAdapter.findInventoryInByPurchase();
        return inventoryInByPurchase;
    }

    @Override
    public List<InventoryInoutPo> findInventoryOutByPurchase() {
        return inventoryInoutAdapter.findInventoryOutByPurchase();
    }

    @Override
    public List<InventoryInoutPo> findMaterialOutDetialsByOutApplyId(Integer id) {
        return inventoryInoutAdapter.findMaterialOutDetialsByOutApplyId(id);
    }
}
